<!DOCTYPE html>
<html>
    <head>
        <title>Test page</title>
        <script src="external.js"></script>
        <script>
            alert("Hello, world!");
        </script>
    </head>
    <body ng-app>
        <A href="javascript:void(alert('Nope!'))">click here</a>
    </body>
</html>